home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Help / locale / help / english / sys / which.doc < prev    next >
Encoding:
Text File  |  2000-10-06  |  1.1 KB  |  44 lines

  1. WHICH
  2.  
  3. Searches the command path for a particular item.
  4.  
  5. Format
  6.  
  7. WHICH <command> [NORES] [RES] [ALL]
  8.  
  9. Template
  10.  
  11. FILE/A,NORES/S,RES/S,ALL/S
  12.  
  13. Location
  14.  
  15. C:
  16.  
  17. WHICH lets you find a specific command, program, or directory by entering its
  18. name. If the named item is in the search path, WHICH displays the complete
  19. path to that item. WHICH lists resident commands as RESIDENT and internal
  20. commands as INTERNAL.
  21.  
  22. Normally, WHICH searches the resident list, the current directory, the
  23. command paths, and the C: directory. If the item is not found, WHICH sets the
  24. condition flag to 5 (WARN), but does not print any error message.
  25.  
  26. If the NORES option is specified, the resident list is not searched. If the
  27. RES option is specified, only the resident list is searched.
  28.  
  29. The ALL switch continues the search through the full search path, finding and
  30. listing all locations of a command or program. It can, however, lead to
  31. multiple listings of the same command if that command is reached by more than
  32. one route (such as C: and the current directory).
  33.  
  34. Examples:
  35.  
  36. 1> WHICH avail
  37. C:Avail
  38.  
  39. 1> WHICH C:
  40. Workbench:C
  41.  
  42. 1> WHICH alias
  43. INTERNAL alias
  44.